package cn.wsalix.sys.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import cn.anlaser.entity.CommonEntity;

@Entity
@Table(name = "DAILY_RECORD")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@DynamicUpdate
@DynamicInsert
@Data
@EqualsAndHashCode(callSuper = false)
public class DailyRecord extends CommonEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6133984070037311209L;

	@Temporal(TemporalType.DATE)
	private Date daily;// 日期
	
	@Column(columnDefinition = "int default 0", nullable = false)
	private int toRegister = 0;// 注册数量
	@Column(columnDefinition = "int default 0", nullable = false)
	private int onlineNum;// 在线人数
	
	@Column(columnDefinition = "int default 0", nullable = false)
	private int goodsCount;// 产品总数
	@Column(columnDefinition = "int default 0", nullable = false)
	private int topCarriage;// 上架产品数
	@Column(columnDefinition = "int default 0", nullable = false)
	private int undercarriage;// 下架产品数
	@Column(columnDefinition = "int default 0", nullable = false)
	private int stockout;// 缺货产品数
	
	@Column(columnDefinition = "int default 0", nullable = false)
	private int orderNum;// 订单数
	@Column(columnDefinition = "int default 0", nullable = false)
	private int orderPayNum;// 付款订单数
}